package com.connectx.campusx.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.connectx.campusx.model.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 学生表
 *
 * @author yangbo
 * @date 2024/06/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_student")
public class Student extends BaseEntity {

    /* 姓名 */
    @TableField(value = "name")
    private String name;

    /* 班级 */
    @TableField(value = "grade")
    private int grade;

    /* 性别 */
    @TableField(value = "gender")
    private int gender;

    /* 生日 */
    @TableField(value = "birthDay")
    private Date birthDay;

    /* 邮箱 */
    @TableField(value = "email")
    private String email;

    /* 联系方式 */
    @TableField(value = "contact")
    private String contact;
}
